<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <link rel="stylesheet" href="../../bower_components/bootstrap/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="../../static/css/datatables.css"/>
    <link rel="stylesheet" href="../../static/css/style.css"/>
    <!--[if lt IE 9]>
    <script src="../../bower_components/respond/dest/respond.min.js"></script>
    <![endif]-->
    <script>var ctx = '';
    var basePath = '/gillion-web';</script>
    <script src="../../bower_components/requirejs/require.js" data-main="../../static/app" data-bootstrap-modules="'system/employee/EmployeeModule'"></script>
    <title></title>
</head>
<body ng-controller="EmployeeController">
<form method="post" action="/gillion-web/system/employees/save" class="form-horizontal" name="UserForm" g-validator="Employee_Save" data-invalid-msg="tooltip">
    <div class="form-group">
        <label class="col-xs-3 col-sm-2 col-md-1 col-lg-1 control-label" for="txtName">姓名 :</label>

        <div class="col-xs-9 col-sm-10 col-md-11 col-lg-11">
            <input type="text" name="name" ng-model="employee.name" id="txtName" value="5859385"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-3 col-sm-2 col-md-1 col-lg-1 control-label" for="txtPassword">密码 :</label>

        <div class="col-xs-9 col-sm-10 col-md-11 col-lg-11">
            <input type="password" name="password" ng-model="employee.password" id="txtPassword" value="123456"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-3 col-sm-2 col-md-1 col-lg-1 control-label" for="txtConfirmPassword">确认密码 :</label>

        <div class="col-xs-9 col-sm-10 col-md-11 col-lg-11">
            <input type="password" name="confirmPassword" ng-model="employee.confirmPassword" value="123456" id="txtConfirmPassword"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-3 col-sm-2 col-md-1 col-lg-1 control-label" for="txtEmail">邮箱 :</label>

        <div class="col-xs-9 col-sm-10 col-md-11 col-lg-11">
            <input ng-model="employee.email" type="text" name="email" id="txtEmail"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-3 col-sm-2 col-md-1 col-lg-1 control-label" for="txtConfirmEmail">确认邮箱 :</label>

        <div class="col-xs-9 col-sm-10 col-md-11 col-lg-11">
            <input ng-model="employee.confirmEmail" type="text" name="confirmEmail" id="txtConfirmEmail"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-3 col-sm-2 col-md-1 col-lg-1 control-label" for="numAge">年龄 :</label>

        <div class="col-xs-9 col-sm-10 col-md-11 col-lg-11">
            <input ng-model="employee.age" type="number" name="age" id="numAge"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-3 col-sm-2 col-md-1 col-lg-1 control-label" for="txtMobile">手机号 :</label>

        <div class="col-xs-9 col-sm-10 col-md-11 col-lg-11">
            <input type="text" name="mobile" id="txtMobile" ng-model="employee.mobile" value="18659297460"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-3 col-sm-2 col-md-1 col-lg-1 control-label" for="txtTelephone">固定电话 :</label>

        <div class="col-xs-9 col-sm-10 col-md-11 col-lg-11">
            <input ng-model="employee.telephone" type="text" name="telephone" id="txtTelephone"/>
        </div>
    </div>
    <!--<button ng-click="addRole()" type="button">添加角色</button>
    <div class="form-group" ng-repeat="(roleIndex, role) in employee.roles">
        <label class="col-xs-3 col-sm-2 col-md-1 col-lg-1 control-label" for="txtEmpRole{{roleIndex}}">角色名称 :</label>

        <div class="col-xs-9 col-sm-10 col-md-11 col-lg-11">
            <input ng-model="role[{{roleIndex}}].roleName" type="text" name="employee.roles[{{roleIndex}}].roleName" id="txtEmpRole{{roleIndex}}"/>
        </div>
    </div>-->
    <div class="form-group">
        <label class="col-xs-3 col-sm-2 col-md-1 col-lg-1 control-label" for="txtEmpRole0">角色名称 :</label>

        <div class="col-xs-9 col-sm-10 col-md-11 col-lg-11">
            <input ng-model="roles[0].roleName" type="text" name="employee.roles[0].roleName" id="txtEmpRole0"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-3 col-sm-2 col-md-1 col-lg-1 control-label" for="txtEmpRole1">角色名称 :</label>

        <div class="col-xs-9 col-sm-10 col-md-11 col-lg-11">
            <input ng-model="roles[1].roleName" type="text" name="employee.roles[1].roleName" id="txtEmpRole1"/>
        </div>
    </div>
    <div>
        <div class="col-xs-offset-3 col-sm-offset-2 col-md-offset-1 col-lg-offset-1">
            <!--<input type="text" name="roles[0].id" ng-model="employee.roles[0].id" value="1"/>-->
            <button type="submit">提交</button>
        </div>
    </div>
    <button ng-click="testSubmit()" type="button">测试提交</button>
</form>
</body>
</html>